<template>
  <div>
    首页
    <el-button type="info" @click="logout">退出</el-button>
  </div>
</template>

<script>
export default {

  data () {
    return {
    }
  },

  methods: {
      logout(){
          this.$router.push('/login')
          sessionStorage.removeItem('token')
          this.$mg.success('退出成功')
      }
  },

  created () {
  }
}
</script>

<style lang='less' scoped>

</style>
